﻿<% for column in Subject.content_columns %>
<p>
  <b><%= column.human_name %>:</b> <%=h @subject.send(column.name) %>
</p>
<% end %>
<b>上级科目:</b><%= @subject.parent_id==0?"-":(Subject.find(@subject.parent_id)).name  %>
<p />
<%= link_to 'Edit', :action => 'edit', :id => @subject %> |
<%= link_to 'Back', :action => 'list' %>
